package com.itheima.health.dao;

import com.itheima.health.pojo.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;


@Mapper
public interface OrderDao {

    /**
     * 预约下单
     * @param order
     */
    void insert(Order order);

    /**
     * 订单详情
     * @param id
     * @return
     */
    Order selectById(Integer id);

    @Select("select count(*) from t_order where order_date = #{today}")
    Integer countBySetmealId(Integer id);
}


